
define(['jquery','underscore','backbone','text!../templates/todo.html'], function($,_,Backbone, TodoTemplate){

    var TodoView = Backbone.View.extend({

        template: _.template(TodoTemplate),

        initialize:function(options){
            console.log('TodoView Initialized');
            this.options = options || {};
            this.render();
        },

        render:function(){
            $(this.el).html(this.template({model:this.options.model}));
        }
    });

    return TodoView;

});